﻿using test;

namespace Common.Helper
{
    public class LogHelper
    {

        public static string LogFile = "Logs/" + DateTime.Now.ToString("yyyy-MM-dd") + ".txt";
        public static void Write(string message)
        {
            using (StreamWriter sw = new StreamWriter(LogFile, true))
            {
                sw.WriteLine("##" + message + DateTime.Now.ToString("MMM dd yyyy HH:mm:ss") + "##");
                //sw.WriteLine(message);
                sw.WriteLine();
                sw.Flush();
            }
        }
    }
}
